.class public Lcom/nemustech/regina/ReginaAppWidgetHostView;
.super Landroid/appwidget/AppWidgetHostView;
.source "ReginaAppWidgetHostView.java"


# static fields
.field private static LOG_FLAG:Z = false

.field private static final TAG:Ljava/lang/String; = "dwkim"


# instance fields
.field mAnimationListener:Landroid/view/animation/Animation$AnimationListener;

.field private mHasClock:Z

.field private mInAnimation:Landroid/view/animation/Animation;

.field private mIsRequestedAnimation:Z

.field private mIsUpdated:Z

.field private mOutAnimation:Landroid/view/animation/Animation;

.field private mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

.field private mViewAnimator:Landroid/widget/ViewAnimator;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 38
    const/4 v0, 0x0

    sput-boolean v0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->LOG_FLAG:Z

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 50
    invoke-direct {p0, p1}, Landroid/appwidget/AppWidgetHostView;-><init>(Landroid/content/Context;)V

    .line 40
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mIsUpdated:Z

    .line 108
    new-instance v0, Lcom/nemustech/regina/ReginaAppWidgetHostView$1;

    invoke-direct {v0, p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView$1;-><init>(Lcom/nemustech/regina/ReginaAppWidgetHostView;)V

    iput-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mAnimationListener:Landroid/view/animation/Animation$AnimationListener;

    .line 51
    return-void
.end method

.method static synthetic access$000()Z
    .locals 1

    .prologue
    .line 36
    sget-boolean v0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->LOG_FLAG:Z

    return v0
.end method

.method static synthetic access$100(Lcom/nemustech/regina/ReginaAppWidgetHostView;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->updateByViewMode()V

    return-void
.end method

.method private convertVisibilityToString(I)Ljava/lang/String;
    .locals 1
    .parameter "visibility"

    .prologue
    .line 217
    sparse-switch p1, :sswitch_data_0

    .line 225
    const/4 v0, 0x0

    :goto_0
    return-object v0

    .line 219
    :sswitch_0
    const-string v0, "Visible"

    goto :goto_0

    .line 221
    :sswitch_1
    const-string v0, "Invisible"

    goto :goto_0

    .line 223
    :sswitch_2
    const-string v0, "Gone"

    goto :goto_0

    .line 217
    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_0
        0x4 -> :sswitch_1
        0x8 -> :sswitch_2
    .end sparse-switch
.end method

.method private isInScreen()Z
    .locals 6

    .prologue
    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 253
    const/4 v3, 0x2

    new-array v0, v3, [I

    .line 254
    .local v0, location:[I
    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getLocationOnScreen([I)V

    .line 255
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v2

    .line 256
    .local v2, screenWidth:I
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcom/nemustech/regina/RUtils;->getScreenWidthAvailable(Landroid/content/Context;)I

    move-result v1

    .line 258
    .local v1, screenHeight:I
    aget v3, v0, v4

    if-ltz v3, :cond_0

    aget v3, v0, v4

    if-ge v3, v2, :cond_0

    aget v3, v0, v5

    if-ltz v3, :cond_0

    aget v3, v0, v5

    if-ge v3, v1, :cond_0

    move v3, v5

    :goto_0
    return v3

    :cond_0
    move v3, v4

    goto :goto_0
.end method

.method private setAnimationListener(Landroid/view/animation/Animation;)V
    .locals 1
    .parameter "animation"

    .prologue
    .line 247
    if-eqz p1, :cond_0

    .line 248
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mAnimationListener:Landroid/view/animation/Animation$AnimationListener;

    invoke-virtual {p1, v0}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 250
    :cond_0
    return-void
.end method

.method private updateByViewMode()V
    .locals 4

    .prologue
    .line 230
    iget-object v1, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    if-eqz v1, :cond_2

    .line 231
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setUpdated(Z)V

    .line 232
    iget-object v1, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementAndroidWidget;->getContext()Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getViewMode()I

    move-result v1

    if-nez v1, :cond_1

    .line 235
    iget-object v1, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementAndroidWidget;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    .line 236
    .local v0, workspace:Lcom/nemustech/regina/RGWorkspace;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspace;->requestUpdate()V

    .line 244
    .end local v0           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_0
    :goto_0
    return-void

    .line 238
    :cond_1
    iget-object v1, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementAndroidWidget;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    .line 239
    .restart local v0       #workspace:Lcom/nemustech/regina/RGWorkspace;
    if-eqz v0, :cond_0

    const/high16 v1, 0x3f00

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/RGWorkspace;->updateThumb(F)V

    goto :goto_0

    .line 242
    .end local v0           #workspace:Lcom/nemustech/regina/RGWorkspace;
    :cond_2
    const-string v1, "dwkim"

    const-string v2, "mOwner is null"

    sget-boolean v3, Lcom/nemustech/regina/ReginaAppWidgetHostView;->LOG_FLAG:Z

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto :goto_0
.end method


# virtual methods
.method public checkView(Landroid/view/View;)V
    .locals 6
    .parameter "view"

    .prologue
    .line 127
    if-eqz p1, :cond_0

    instance-of v3, p1, Landroid/view/ViewGroup;

    if-eqz v3, :cond_0

    .line 128
    const/4 v2, 0x0

    .local v2, index:I
    :goto_0
    move-object v0, p1

    check-cast v0, Landroid/view/ViewGroup;

    move-object v3, v0

    invoke-virtual {v3}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v3

    if-ge v2, v3, :cond_0

    .line 129
    move-object v0, p1

    check-cast v0, Landroid/view/ViewGroup;

    move-object v3, v0

    invoke-virtual {v3, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    .line 130
    .local v1, child:Landroid/view/View;
    instance-of v3, v1, Landroid/widget/ViewAnimator;

    if-eqz v3, :cond_1

    .line 131
    check-cast v1, Landroid/widget/ViewAnimator;

    .end local v1           #child:Landroid/view/View;
    iput-object v1, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    .line 132
    iget-object v3, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    invoke-virtual {v3}, Landroid/widget/ViewAnimator;->getInAnimation()Landroid/view/animation/Animation;

    move-result-object v3

    iput-object v3, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mInAnimation:Landroid/view/animation/Animation;

    .line 133
    iget-object v3, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    invoke-virtual {v3}, Landroid/widget/ViewAnimator;->getOutAnimation()Landroid/view/animation/Animation;

    move-result-object v3

    iput-object v3, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOutAnimation:Landroid/view/animation/Animation;

    .line 134
    iget-object v3, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mInAnimation:Landroid/view/animation/Animation;

    invoke-direct {p0, v3}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setAnimationListener(Landroid/view/animation/Animation;)V

    .line 135
    const-string v3, "dwkim"

    const-string v4, "found ViewAnimator!!!"

    sget-boolean v5, Lcom/nemustech/regina/ReginaAppWidgetHostView;->LOG_FLAG:Z

    invoke-static {v3, v4, v5}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 145
    .end local v2           #index:I
    :cond_0
    return-void

    .line 137
    .restart local v1       #child:Landroid/view/View;
    .restart local v2       #index:I
    :cond_1
    instance-of v3, v1, Landroid/widget/AnalogClock;

    if-nez v3, :cond_2

    instance-of v3, v1, Landroid/widget/DigitalClock;

    if-eqz v3, :cond_3

    .line 138
    :cond_2
    const/4 v3, 0x1

    iput-boolean v3, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mHasClock:Z

    .line 139
    const-string v3, "dwkim"

    const-string v4, "found Clock!!!"

    sget-boolean v5, Lcom/nemustech/regina/ReginaAppWidgetHostView;->LOG_FLAG:Z

    invoke-static {v3, v4, v5}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 128
    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 141
    :cond_3
    invoke-virtual {p0, v1}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->checkView(Landroid/view/View;)V

    goto :goto_1
.end method

.method protected dispatchDraw(Landroid/graphics/Canvas;)V
    .locals 5
    .parameter "canvas"

    .prologue
    const/4 v4, 0x0

    const/4 v3, 0x1

    .line 181
    invoke-super {p0, p1}, Landroid/appwidget/AppWidgetHostView;->dispatchDraw(Landroid/graphics/Canvas;)V

    .line 182
    const-string v0, "dwkim"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "dispatchDraw, visibility = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getVisibility()I

    move-result v2

    invoke-direct {p0, v2}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->convertVisibilityToString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", id ="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getAppWidgetId()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    sget-boolean v2, Lcom/nemustech/regina/ReginaAppWidgetHostView;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 184
    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_2

    .line 185
    invoke-virtual {p0, v4}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setAnimation(Z)V

    .line 186
    iput-boolean v3, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mIsRequestedAnimation:Z

    .line 192
    :cond_0
    :goto_0
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mHasClock:Z

    if-eqz v0, :cond_1

    .line 193
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    if-eqz v0, :cond_1

    .line 194
    invoke-virtual {p0, v3}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setUpdated(Z)V

    .line 195
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementAndroidWidget;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspace;->requestUpdate()V

    .line 198
    :cond_1
    return-void

    .line 187
    :cond_2
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mIsRequestedAnimation:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    .line 188
    invoke-virtual {p0, v3}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setAnimation(Z)V

    .line 189
    iput-boolean v4, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mIsRequestedAnimation:Z

    goto :goto_0
.end method

.method public getOwner()Lcom/nemustech/regina/ElementAndroidWidget;
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    return-object v0
.end method

.method public isUpdated()Z
    .locals 1

    .prologue
    .line 106
    iget-boolean v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mIsUpdated:Z

    return v0
.end method

.method protected onDisplayVisibilityChanged(Z)V
    .locals 3
    .parameter "visible"

    .prologue
    .line 201
    const-string v0, "dwkim"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "onDisplayVisibilityChanged() called, visibility = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", id ="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getAppWidgetId()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    sget-boolean v2, Lcom/nemustech/regina/ReginaAppWidgetHostView;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 202
    if-eqz p1, :cond_2

    .line 203
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    if-eqz v0, :cond_0

    .line 204
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setAnimation(Z)V

    .line 207
    :cond_0
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    if-eqz v0, :cond_1

    .line 208
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementAndroidWidget;->forceUpdatePanel()V

    .line 209
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementAndroidWidget;->getWorkspace()Lcom/nemustech/regina/RGWorkspace;

    move-result-object v0

    const/high16 v1, 0x3f00

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/RGWorkspace;->updateThumb(F)V

    .line 214
    :cond_1
    :goto_0
    return-void

    .line 212
    :cond_2
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->setAnimation(Z)V

    goto :goto_0
.end method

.method protected onMeasure(II)V
    .locals 3
    .parameter "widthMeasureSpec"
    .parameter "heightMeasureSpec"

    .prologue
    .line 150
    invoke-super {p0, p1, p2}, Landroid/appwidget/AppWidgetHostView;->onMeasure(II)V

    .line 151
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    if-eqz v0, :cond_1

    .line 152
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->isInScreen()Z

    move-result v0

    if-nez v0, :cond_0

    .line 153
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->updateByViewMode()V

    .line 158
    :cond_0
    :goto_0
    const-string v0, "dwkim"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "onMeasure() called!, visibility = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getVisibility()I

    move-result v2

    invoke-direct {p0, v2}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->convertVisibilityToString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", id ="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getAppWidgetId()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    sget-boolean v2, Lcom/nemustech/regina/ReginaAppWidgetHostView;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 159
    return-void

    .line 156
    :cond_1
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->updateByViewMode()V

    goto :goto_0
.end method

.method public setAnimation(Z)V
    .locals 3
    .parameter "show"

    .prologue
    const/4 v1, 0x0

    .line 162
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    if-eqz v0, :cond_0

    .line 163
    if-eqz p1, :cond_1

    .line 164
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mInAnimation:Landroid/view/animation/Animation;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOutAnimation:Landroid/view/animation/Animation;

    if-eqz v0, :cond_0

    .line 165
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mInAnimation:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Landroid/widget/ViewAnimator;->setInAnimation(Landroid/view/animation/Animation;)V

    .line 166
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    iget-object v1, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOutAnimation:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Landroid/widget/ViewAnimator;->setOutAnimation(Landroid/view/animation/Animation;)V

    .line 167
    const-string v0, "dwkim"

    const-string v1, "setAnimation true"

    sget-boolean v2, Lcom/nemustech/regina/ReginaAppWidgetHostView;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 177
    :cond_0
    :goto_0
    return-void

    .line 170
    :cond_1
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    if-eqz v0, :cond_0

    .line 171
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    invoke-virtual {v0, v1}, Landroid/widget/ViewAnimator;->setInAnimation(Landroid/view/animation/Animation;)V

    .line 172
    iget-object v0, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mViewAnimator:Landroid/widget/ViewAnimator;

    invoke-virtual {v0, v1}, Landroid/widget/ViewAnimator;->setOutAnimation(Landroid/view/animation/Animation;)V

    .line 173
    const-string v0, "dwkim"

    const-string v1, "setAnimation false"

    sget-boolean v2, Lcom/nemustech/regina/ReginaAppWidgetHostView;->LOG_FLAG:Z

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    goto :goto_0
.end method

.method public setOwner(Lcom/nemustech/regina/ElementAndroidWidget;)V
    .locals 0
    .parameter "elementAndroidWidget"

    .prologue
    .line 54
    iput-object p1, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mOwner:Lcom/nemustech/regina/ElementAndroidWidget;

    .line 55
    return-void
.end method

.method public setUpdated(Z)V
    .locals 0
    .parameter "value"

    .prologue
    .line 102
    iput-boolean p1, p0, Lcom/nemustech/regina/ReginaAppWidgetHostView;->mIsUpdated:Z

    .line 103
    return-void
.end method

.method public updateAppWidget(Landroid/widget/RemoteViews;)V
    .locals 3
    .parameter "remoteViews"

    .prologue
    .line 93
    const-string v0, "dwkim"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "updateAppWidget() called, id = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->getAppWidgetId()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 94
    invoke-super {p0, p1}, Landroid/appwidget/AppWidgetHostView;->updateAppWidget(Landroid/widget/RemoteViews;)V

    .line 96
    invoke-virtual {p0, p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->checkView(Landroid/view/View;)V

    .line 97
    invoke-direct {p0}, Lcom/nemustech/regina/ReginaAppWidgetHostView;->updateByViewMode()V

    .line 98
    return-void
.end method
